<%@ page import="pojo.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页</title>
<link type="text/css" rel="stylesheet" href="../skin/css/base_style.css" />
<link type="text/css" rel="stylesheet" href="../skin/css/right_index.css" />
<link type="text/css" rel="stylesheet" href="../skin/css/index.css" />
<script type="text/javascript" src="../skin/js/jquery-1.7.1.js"></script>
<script type="text/javascript"  src="../skin/js/home.js"></script>
    <script type="text/javascript" src="../skin/js/rd.js"></script>

    <script type="text/javascript">

    </script>
</head>

<body>
	<div class="tit_bg1">
    	<div class="tit_bg2">
            <div class="tit_textlay">
            	<h1 class="tit_text fyh">科睿特日志系统</h1>KERUITE&nbsp;LOG&nbsp;MANAGERIRL&nbsp;SYSTEM 
            </div>
            <div class="time_layout fyh">欢迎您登录科睿特日志管理系统！<em class="tit_time"></em></div>
            <div class="tit_button">

                <a class="tit_back" href="${pageContext.request.contextPath}/info?method=info"><img src="../skin/images/index_tit_icon_06.png" class="tit_img"/><div class="back_ts fyh">用户信息</div></a>
                <img src="../skin/images/index_tit_icon_03.png" class="tit_img"/>
                <a class="tit_back" href="${pageContext.request.contextPath}/home?method=home"><img src="../skin/images/index_tit_icon_09.png" class="tit_img"/><div class="back_ts fyh">返回主页</div></a>
                <img src="../skin/images/index_tit_icon_03.png" class="tit_img"/>
                <a href="${pageContext.request.contextPath}/login?method=logout" class="tit_back"><img src="../skin/images/index_tit_icon_11.png" class="tit_img"/><div class="back_ts fyh">退出系统</div></a>
            </div>
        </div>
    </div>
    <!--left-->
   <div class="left_layout">
   	   <div class="left_manage fyh">管理菜单<img src="../skin/images/left_hidden_03.png" class="manage_img"/></div>
       <ul class="left_first_ul">
       		<li class="left_first_li">
                <a class="left_first_a fyh">${firstFunction.function}</a>
                <ul class="left_second_ul">
                    <c:forEach items="${functionFirst}" var="First" varStatus="vs">
                	<li class="left_second_li">
                        <a class="left_second_a fyh" href="${pageContext.request.contextPath}${First.functionAddress}">${First.functionName}</a>
                    </li>
                    </c:forEach>
                </ul>
            </li>
           <li class="left_first_li">
               <a class="left_first_a fyh">${secondFunction.function}</a>
               <ul class="left_second_ul">
                   <c:forEach items="${functionSecond}" var="Second" varStatus="vs">
                       <li class="left_second_li">
                           <a class="left_second_a fyh" href="${pageContext.request.contextPath}${Second.functionAddress}">${Second.functionName}</a>
                       </li>
                   </c:forEach>
               </ul>
           </li>
       </ul>
   </div>
   <!--right-->
   <div class="right_layout">
   		<img src="../skin/images/left_hidden1_03.png" class="hidden_img"/>
       <div class="right_content">
       		<div class="hr-5"></div>
       		<div class="right_tit">
            	<div class="right_back fyh"></div>
            	<div class="tit_bg fyh"></div>
            </div>
           <div class="rd_tit">
               <ul class="rd_tit_ul">
                   <c:forEach items="${functions}" var="function" varStatus="vs">
                       <li class="rd_tit_li"><a class="rd_tit_a fyh" href="${pageContext.request.contextPath}${function.functionAddress}">
                           <img src="../skin/images/right_index_icon_0${vs.index}.png"/><h3>${function.functionName}</h3></a></li>
                   </c:forEach>
               </ul>
           </div>
           <div class="rd_content">

               <c:if test="${userInfo.roleId==1}">
                   <div class="rd_firstpart">
                       <div class="rd_firstpart_tit">
                           <div class="rd_firstPart_tit_text1"><a href="${pageContext.request.contextPath}/log?method=checkLog" class="rd_firstPart_tit_a">更多</a><img src="skin/images/right_img_03.png"  class="rd_firstPart_tit_image"/></div>
                           <div class="rd_firstPart_tit_text2"><img src="skin/images/right_img_06.png" class="rd_firstPart_tit_image"/><span class="rd_firstPart_tit_span">员工上报日志</span></div>
                       </div>
                       <ul class="rd_firstpart_ul">
                           <c:forEach items="${logs}" var="log" varStatus="vs" begin="0" end="3">
                           <li><a class="rd_firstPart_li" href="${pageContext.request.contextPath}/log?method=seeLog&id=${log.id}"><div class="rd_firstPart_li_div">${log.date}</div>${log.title}</a></li>
                           <li class="rd_firstPart_line"></li>
                           </c:forEach>
                       </ul>
                   </div>
               </c:if>
               <c:if test="${userInfo.roleId==2}">
                   <div class="rd_firstpart">
                       <div class="rd_firstpart_tit">
                           <div class="rd_firstPart_tit_text1"><a href="${pageContext.request.contextPath}/log?method=lookLog" class="rd_firstPart_tit_a">更多</a><img src="skin/images/right_img_03.png"  class="rd_firstPart_tit_image"/></div>
                           <div class="rd_firstPart_tit_text2"><img src="skin/images/right_img_06.png" class="rd_firstPart_tit_image"/><span class="rd_firstPart_tit_span">员工上报日志</span></div>
                       </div>
                       <ul class="rd_firstpart_ul">
                           <c:forEach items="${logs1}" var="log" varStatus="vs" begin="0" end="3">
                               <li><a class="rd_firstPart_li" href="${pageContext.request.contextPath}/log?method=seeLog&id=${log.id}"><div class="rd_firstPart_li_div">${log.date}</div>${log.title}</a></li>
                               <li class="rd_firstPart_line"></li>
                           </c:forEach>
                       </ul>
                   </div>
                   <div class="rd_firstpart">
                       <div class="rd_firstpart_tit">
                           <div class="rd_firstPart_tit_text1"><a href="${pageContext.request.contextPath}/user?method=lookAllUser" class="rd_firstPart_tit_a">更多</a><img src="skin/images/right_img_03.png"  class="rd_firstPart_tit_image"/></div>
                           <div class="rd_firstPart_tit_text2"><img src="skin/images/right_img_06.png" class="rd_firstPart_tit_image"/><span class="rd_firstPart_tit_span">员工信息</span></div>
                       </div>
                       <ul class="rd_firstpart_ul">
                           <c:forEach items="${userList}" var="user" varStatus="vs" begin="0" end="3">
                               <li><a class="rd_firstPart_li"><div class="rd_firstPart_li_div">${user.department}</div>${user.realName}</a></li>
                               <li class="rd_firstPart_line"></li>
                           </c:forEach>
                       </ul>
                   </div>
               </c:if>
                   <%--<div class="rd_firstpart">--%>
                       <%--<div class="rd_firstpart_tit">--%>
                           <%--<div class="rd_firstPart_tit_text1"><a href="${pageContext.request.contextPath}/minister?method=checkLog" class="rd_firstPart_tit_a">更多</a><img src="skin/images/right_img_03.png"  class="rd_firstPart_tit_image"/></div>--%>
                           <%--<div class="rd_firstPart_tit_text2"><img src="skin/images/right_img_06.png" class="rd_firstPart_tit_image"/><span class="rd_firstPart_tit_span">员工上报日志</span></div>--%>
                       <%--</div>--%>
                       <%--<ul class="rd_firstpart_ul">--%>
                           <%--<c:forEach items="${logs}" var="log" varStatus="vs" begin="0" end="4">--%>
                               <%--<li><a class="rd_firstPart_li" href="${pageContext.request.contextPath}/minister?method=seeLog&id=${log.id}"><div class="rd_firstPart_li_div">${log.date}</div>${log.title}</a></li>--%>
                               <%--<li class="rd_firstPart_line"></li>--%>
                           <%--</c:forEach>--%>
                       <%--</ul>--%>
                   <%--</div>--%>
               <%--</c:if>--%>

               <c:if test="${userInfo.roleId==3}">
                   <div class="rd_firstpart">
                       <div class="rd_firstpart_tit">
                           <div class="rd_firstPart_tit_text1"><a href="${pageContext.request.contextPath}/log?method=manageLog" class="rd_firstPart_tit_a">更多</a><img src="skin/images/right_img_03.png"  class="rd_firstPart_tit_image"/></div>
                           <div class="rd_firstPart_tit_text2"><img src="skin/images/right_img_06.png" class="rd_firstPart_tit_image"/><span class="rd_firstPart_tit_span">文章管理</span></div>
                       </div>
                       <ul class="rd_firstpart_ul">
                           <c:forEach items="${logs2}" var="log" varStatus="vs" begin="0" end="3">
                               <li><a class="rd_firstPart_li" href="${pageContext.request.contextPath}/log?method=lookLog&id=${log.id}"><div class="rd_firstPart_li_div">${log.date}</div>${log.title}</a></li>
                               <li class="rd_firstPart_line"></li>
                           </c:forEach>
                       </ul>
                   </div>
                   <div class="rd_firstpart">
                       <div class="rd_firstpart_tit">
                           <div class="rd_firstPart_tit_text1"><a href="${pageContext.request.contextPath}/user?method=manageUser" class="rd_firstPart_tit_a">更多</a><img src="skin/images/right_img_03.png"  class="rd_firstPart_tit_image"/></div>
                           <div class="rd_firstPart_tit_text2"><img src="skin/images/right_img_06.png" class="rd_firstPart_tit_image"/><span class="rd_firstPart_tit_span">用户管理</span></div>
                       </div>
                       <ul class="rd_firstpart_ul">
                           <c:forEach items="${userList1}" var="user" varStatus="vs" begin="0" end="3">
                               <li><a class="rd_firstPart_li"><div class="rd_firstPart_li_div">${user.department}</div>${user.realName}</a></li>
                               <li class="rd_firstPart_line"></li>
                           </c:forEach>
                       </ul>
                   </div>
                   <div class="rd_firstpart" id="add">
                        <div class="rd_firstpart_tit">
                            <div class="rd_firstPart_tit_text1"><img src="../skin/images/right_img_03.png" class="rd_fisrtPart_last_img"/></div>
                            <div class="rd_firstPart_tit_text2"><img src="../skin/images/right_img_06.png" class="rd_firstPart_tit_image"/>
                                <span class="rd_firstPart_tit_span">模块功能功能</span></div>
                        </div>
                        <ul class="rd_firstpart_ul">
                            <li class="rd_fisrtPart_last_li">
                                <div class="rd_fisrtPart_last_liDiv"><a href="${pageContext.request.contextPath}/permission?method=tiaozhuan"><img src="../skin/images/right_addimg_11.png" /></a></div>
                                <div class="rd_fisrtPart_last_lidiva">请<span class="rd_fisrtPart_last_span"><a href="${pageContext.request.contextPath}/permission?method=tiaozhuan">添加功能</a></span></div>
                            </li>
                        </ul>
                    </div>

                </c:if>
               <div class="clear"></div>
           </div>
       </div>
       <div class="floor fyh">软件开发：&nbsp;赣州科睿特软件技术有限公司(技术支持)&nbsp;&nbsp;&nbsp;&nbsp;客服电话：&nbsp;0797-8356742</div>
   </div>
</body>
</html>
